﻿@model IEnumerable<Warehouse.Models.StoreDevice>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            SystemTypeID
        </th>
        <th>
            TypeID
        </th>
        <th>
            ModelDevice
        </th>
        <th>
            TypeRepair
        </th>
        <th>
            SerialNumber
        </th>
        <th>
            DataProduction
        </th>
        <th>
            DataChecking
        </th>
        <th>
            Checking
        </th>
        <th>
            Comment
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.SystemTypeID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TypeID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ModelDevice.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TypeRepair.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SerialNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DataProduction)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DataChecking)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Checking)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Comment)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
